package bom.service.i.organization;

import bom.pojo.organization.User;
import bom.pojo.query.Page;
import bom.pojo.query.QueryUser;

import java.util.List;
import java.util.Map;

/**
 * @Author: Fancyears·Maylos·Maywas
 * @Description:
 * @Date: Created in  2018/11/27 15:01
 * @Modified By:
 */
public interface UserService {
    boolean save(User entity) throws Exception;

    boolean update(User entity) throws Exception;

    boolean removeBath(List<User> entityList) throws Exception;

    boolean userControl(User entity);

    Map<String, Object> userContr(User entity);

    User get(User entity);

    User findByLogin(String login);

    Map<String, Object> saveUser(User entity) throws Exception;

    Map<String, Object> removeByBatch(String json) throws Exception;

    Page findByGroupUserPage(QueryUser user);
}
